package com.ruan.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruan.common.Result;
import com.ruan.pojo.OnDuty;
import com.ruan.pojo.PunchInRequestBody;
import com.ruan.pojo.QuerySelfAttendanceCondition;

public interface OnDutyService extends IService<OnDuty> {

//    List<OnDutyDTO> selectOnDutyDTO(int currentPage, int pageSize, LTOQueryCondition ltoQueryCondition);

    Result getOnDutyStatus(String phone);

//    Result punchIn(Location location, OnDuty onDuty);
    Result punchIn(PunchInRequestBody requestBody);

    Result punchOut(String phone);//,Location location

    Result batchPunchOut(PunchInRequestBody requestBody);

    IPage<OnDuty> getSelfOnDuty(int currentPage, int pageSize, QuerySelfAttendanceCondition querySelfAttendanceCondition);

    Result setOnDutyStatus(String phone, String day, String status);

    byte[] exportToExcel(Integer id);
}
